# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gmime26
pkgver=2.6.23
pkgrel=0
pkgdesc="A C/C++ MIME creation and parser library with support for S/MIME, PGP"
url="https://developer.gnome.org/gmime/"
arch="all"
license="LGPL-2.1-only"
depends_dev="gpgme-dev"
makedepends="$depends_dev glib-dev intltool vala gobject-introspection-dev"
options="!check" # iconv doesn't work on musl
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/gmime/${pkgver%.*}/gmime-$pkgver.tar.xz"

builddir="$srcdir/gmime-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-vala \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="2ff6718b7a555cd5b34848399f29c7d0aa5a15e1f3cb46e9258c499e874191ee00f41b737386805d3000bad34367d174a25c45d38ba90cba7902400e733afa14  gmime-2.6.23.tar.xz"
